<template>
  <div class="wrapper">
    <div class="row">
      <div class="col-md-12">
        <!--breadcrumbs start -->
        <ul class="breadcrumb panel">
          <li>
            <a href="#/">首 页</a>
          </li>
          <li>
            <a href="#/user/info">我的信息</a>
          </li>
        </ul>
        <!--breadcrumbs end -->
      </div>
      <div class="col-md-12">
        <div class="row">
          <div class="col-md-12">
            <div class="panel">
              <div class="panel-body" >
                <div class="profile-pic text-center">
                  <img alt="" v-bind:src="userInfo.user_img">
                </div>
                <p style="text-align:center"><a><i style="font-size:20px;cursor:pointer" class="fa fa-edit"></i></a></p>
                <ul class="p-info">
                  <li>
                    <div class="title lable-info">姓名：</div>
                    <div class="desk">{{userInfo.user_name}}</div>
                  </li>

                  <li>
                    <div class="title lable-info">邮箱：</div>
                    <div class="desk">{{userInfo.user_email}}</div>
                  </li>
                  <li>
                    <div class="title lable-info">电话：</div>
                    <div class="desk">{{userInfo.user_mobile}}</div>
                  </li>
                  <li>
                    <div class="title lable-info">注册时间：</div>
                    <div class="desk">{{userInfo.create_time}}</div>
                  </li>
                  <li>
                    <div class="title lable-info">最后登陆时间：</div>
                    <div class="desk">{{userInfo.last_time}}</div>
                  </li>
                  <li>
                    <div class="title lable-info" >状态：</div>
                    <div class="desk">{{userInfo.status==1?'正常':'关闭'}}</div>
                  </li>

                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<style>
  .lable-info{
    text-align:right
  }

</style>
<script>
  export default{
    data(){
      return {
        userInfo:[],
      }
    },
    mounted: function(){
      this.getUserInfo();
    },
    created: function(){

    },
    methods: {
      getUserInfo: function(){
          this.load.loading(true)
        this.$http.post('/admin/user/curr').then(function(response){
          this.load.loading(false)
          if(response.data.status){
            this.userInfo=response.data.data
          }
        },function(response){
        }).bind(this);
      },
    }
  }
</script>